from django.contrib import admin
from django.urls import path


from app01.views import account, level, user, policy, my_order, transaction


urlpatterns = [
    path('admin/', admin.site.urls),
    path('login/', account.login,name='login'),
    path('sms/sms_login/',account.sms_login,name='sms_login'),
    path('sms/sms_send/',account.sms_send,name='sms_send'),
    path("home/",account.home,name='home'),
    path("logout/",account.logout,name='logout'),

    path('level/list/',level.level_list,name='level_list'),
    path('level/add/',level.level_add,name='level_add'),
    path('level/delete/<int:pk>',level.level_delete,name='level_delete'),
    path('level/edit/<int:pk>',level.level_edit,name='level_edit'),

    path('customer/list/',user.user_list,name='customer_list'),
    path('customer/add/',user.user_add,name='customer_add'),
    path('customer/edit/<int:pk>',user.user_edit,name='customer_edit'),
    path('customer/reset/<int:pk>',user.user_reset,name='customer_reset'),
    path('customer/delete/', user.user_delete,name='customer_delete'),
    path('customer/charge/<int:pk>/', user.user_charge, name='customer_charge'),
    path('customer/charge/<int:pk>/add/', user.charge_add, name='customer_charge_add'),

    path('policy/list/',policy.policy_list,name='policy_list'),
    path('policy/add/',policy.policy_add,name='policy_add'),
    path('policy/delete/',policy.policy_delete,name='policy_delete'),
    path('policy/edit/<int:pk>',policy.policy_edit,name='policy_edit'),

    path('my/order/list/',my_order.order, name='my_order_list'),
    path('my/order/add/',my_order.order_add,name='my_order_add'),
    path('my/order/cancel/<int:pk>/',my_order.order_cancel,name='my_order_cancel'),

    path('my/transaction/list/',transaction.my_transaction_list, name='my_transaction_list')








    # path('level/list/', account.level),
    # path('level/delete/<int:item_id>/', account.delete_level),
    # path("level/update/", account.edit_level),
    # path("level/edit_item/", account.edit),
    # path("level/save_item/",account.level_saveitem)

]
